package com.example.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.UUID;


public class Order implements Serializable {
    private static final long serialVersionUID = -219988432063763456L;

    private Long orderId;

    private String userId;

    private Integer orderStatus;

    private Integer shippingStatus;

    private String orderAddress;

    private String orderConsignee;

    private Long goodsId;

    private Integer goodsNumber;

    private BigDecimal goodsPrice;

    private BigDecimal goodsAmount;

    private BigDecimal shippingFee;

    private BigDecimal orderAmount;

    private Long couponId;

    private BigDecimal couponPaid;

    private BigDecimal moneyPaid;

    private BigDecimal payAmount;

    private Date createTime;


    public Order(Long orderId, String userId, Integer orderStatus, Integer shippingStatus, String orderAddress, String orderConsignee, Long goodsId, Integer goodsNumber, BigDecimal goodsPrice, BigDecimal goodsAmount, BigDecimal shippingFee, BigDecimal orderAmount, Long couponId, BigDecimal couponPaid, BigDecimal moneyPaid, BigDecimal payAmount, Date createTime) {
        this.orderId = orderId;
        this.userId = userId;
        this.orderStatus = orderStatus;
        this.shippingStatus = shippingStatus;
        this.orderAddress = orderAddress;
        this.orderConsignee = orderConsignee;
        this.goodsId = goodsId;
        this.goodsNumber = goodsNumber;
        this.goodsPrice = goodsPrice;
        this.goodsAmount = goodsAmount;
        this.shippingFee = shippingFee;
        this.orderAmount = orderAmount;
        this.couponId = couponId;
        this.couponPaid = couponPaid;
        this.moneyPaid = moneyPaid;
        this.payAmount = payAmount;
        this.createTime = createTime;
    }

    public Order() {
        super();
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getShippingStatus() {
        return shippingStatus;
    }

    public void setShippingStatus(Integer shippingStatus) {
        this.shippingStatus = shippingStatus;
    }

    public String getOrderAddress() {
        return orderAddress;
    }

    public void setOrderAddress(String orderAddress) {
        this.orderAddress = orderAddress == null ? null : orderAddress.trim();
    }

    public String getOrderConsignee() {
        return orderConsignee;
    }

    public void setOrderConsignee(String orderConsignee) {
        this.orderConsignee = orderConsignee == null ? null : orderConsignee.trim();
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsAmount() {
        return goodsAmount;
    }

    public void setGoodsAmount(BigDecimal goodsAmount) {
        this.goodsAmount = goodsAmount;
    }

    public BigDecimal getShippingFee() {
        return shippingFee;
    }

    public void setShippingFee(BigDecimal shippingFee) {
        this.shippingFee = shippingFee;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Long getCouponId() {
        return couponId;
    }

    public void setCouponId(Long couponId) {
        this.couponId = couponId;
    }

    public BigDecimal getCouponPaid() {
        return couponPaid;
    }

    public void setCouponPaid(BigDecimal couponPaid) {
        this.couponPaid = couponPaid;
    }

    public BigDecimal getMoneyPaid() {
        return moneyPaid;
    }

    public void setMoneyPaid(BigDecimal moneyPaid) {
        this.moneyPaid = moneyPaid;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", userId='" + userId + '\'' +
                ", orderStatus=" + orderStatus +
                ", shippingStatus=" + shippingStatus +
                ", orderAddress='" + orderAddress + '\'' +
                ", orderConsignee='" + orderConsignee + '\'' +
                ", goodsId=" + goodsId +
                ", goodsNumber=" + goodsNumber +
                ", goodsPrice=" + goodsPrice +
                ", goodsAmount=" + goodsAmount +
                ", shippingFee=" + shippingFee +
                ", orderAmount=" + orderAmount +
                ", couponId=" + couponId +
                ", couponPaid=" + couponPaid +
                ", moneyPaid=" + moneyPaid +
                ", payAmount=" + payAmount +
                ", createTime=" + createTime +
                '}';
    }
}